home *** CD-ROM | disk | FTP | other *** search
- global cColorLeft, cColorList, cBGSprite
-
- on mouseDown
- set whichSprite to the clickOn
- puppetSprite(whichSprite, 1)
- repeat while the stillDown
- set the locH of sprite whichSprite to the mouseH
- set the locV of sprite whichSprite to the mouseV
- set colorIndex to the locH of sprite whichSprite - cColorLeft
- if colorIndex = 0 then
- set colorIndex to 1
- end if
- updateStage()
- end repeat
- set the foreColor of sprite cBGSprite to getAt(cColorList, colorIndex)
- updateStage()
- end
-